package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.AttrGroupEntity;
import com.atguigu.gulimall.product.vo.Attr;
import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xjx
 * @email xiajinxiang163@163.com
 * @date 2021-04-11 14:20:25
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Integer catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void SaveOrUpdateAttr(AttrRespVo attr);

    List<AttrEntity> attrRelation(Long attrgroupId);

    PageUtils noAttrRelation(Long attrgroupId, Map<String, Object> params);

    List<Long> getSearchAttrIdS(List<Long> attrIds);
}

